package com.evoupsight.monitorpass.gateway.handlers.codec;

/**
 * @author evoup
 */
public class Message {
    // M
    private byte magicNumber0;
    // O
    private byte magicNumber1;
    // N
    private byte magicNumber2;
    // D
    private byte magicNumber3;

    /**
     * protocol version
     */
    private byte version;

    /**
     * message length
     */
    private long length;

    /**
     * message body
     */
    private String body;

    public byte getMagicNumber0() {
        return magicNumber0;
    }

    public void setMagicNumber0(byte magicNumber0) {
        this.magicNumber0 = magicNumber0;
    }

    public byte getMagicNumber1() {
        return magicNumber1;
    }

    public void setMagicNumber1(byte magicNumber1) {
        this.magicNumber1 = magicNumber1;
    }

    public byte getMagicNumber2() {
        return magicNumber2;
    }

    public void setMagicNumber2(byte magicNumber2) {
        this.magicNumber2 = magicNumber2;
    }

    public byte getMagicNumber3() {
        return magicNumber3;
    }

    public void setMagicNumber3(byte magicNumber3) {
        this.magicNumber3 = magicNumber3;
    }

    public byte getVersion() {
        return version;
    }

    public void setVersion(byte version) {
        this.version = version;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
